iT邦幫忙

0

Rsync 執行參數說明

  • 分享至 

  • xImage
  •  

參數說明 :
-h –help show this help (-h works with no other options)
-v, –verbose 列出rsync過程 詳細內容
-q, –quiet 不列出rsync過程 詳細內容
-c, –checksum skip based on checksum, not mod-time & size
-a, –archive archive mode 權限保存模式,相當於-rlptgoD 參數(no -H)
–no-OPTION turn off an implied OPTION (e.g. –no-D)
-r, –recursive 複製所有下層的資料(遞迴)
-R, –relative 使用相對路徑
–no-implied-dirs don't send implied dirs with –relative
-b, –backup 目的端已經存在的檔案在傳輸或刪除前會被備份
(see –suffix & –backup-dir)
–backup-dir=DIR DIR設定為備份的資料夾路徑
–suffix=SUFFIX suffix設定備份檔案名稱字尾,預設為 ~
-u, –update skip files that are newer on the receiver
–inplace update destination files in-place (SEE MAN PAGE)
–append append data onto shorter files
-d, –dirs transfer directories without recursing
-l, –links 複製所有的連結
-L, –copy-links transform symlink into referent file/dir
–copy-unsafe-links only "unsafe" symlinks are transformed
–safe-links ignore symlinks that point outside the source tree
-k, –copy-dirlinks transform symlink to a dir into referent dir
-K, –keep-dirlinks 把連結到資料夾的檔案當成資料夾處理
-H, –hard-links 保留硬式連結
-p, –perms 保留檔案權限
-E, –executability 保留文件的可執行性
-A, –acls 保留 ACLs (implies –perms)
-X, –xattrs preserve extended attributes (implies –perms)
–chmod=CHMOD 改變目的地的權限
-o, –owner 保留檔按擁有者 (super-user only)
-g, –group 保留檔按群組
–devices preserve device files (super-user only)
–specials preserve special files
-D 保留device資訊
-t, –times 保留時間點
-O, –omit-dir-times 保留時間點 省略目錄
–super receiver attempts super-user activities
-S, –sparse 嘗試處理零星檔案,讓這些檔案在目的端佔去較少磁碟空間
-n, –dry-run 不實際執行傳送,只顯示將會有的傳輸動作
-W, –whole-file 複製整個文件 (without rsync algorithm)
-x, –one-file-system 不要跨越檔案系統分界(只在一個檔案系統處理)
-B, –block-size=SIZE 強制透過rsync程式去比對修復block-sizeforce
-e, –rsh=COMMAND 使用指定的 shell

詳細內容請參考http://blog.faq-book.com/?p=3320


圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言